<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<!--  document.title = document.hidden ? "用户离开了" : "用户回来了"; -->
	<script>
		document.addEventListener("visibilitychange", function(){
			if(!document.hidden){
				// 获取事件
			}
		});
	</script>
</html>
